<% if(pagination.len>1){%>
<div class="">
    <nav aria-label="Page navigation">
        <ul class="pagination justify-content-center">
            <li class="page-item <%if(pagination.Previous<1){%>disabled<%}%>">
                <a class="page-link" href="<%=pagination.url+(pagination.Previous)%>/" tabindex="-1">上一页</a>
            </li>
            <%for(var i=0;i<pagination.len;i++){%>
            <li class="page-item <%if(i+1==pagination.page){%> active<%}%>"><a class="page-link" href="<%=pagination.url+(i+1)%>/"><%=i+1%></a></li>
            <%}%>
            <li class="page-item <%if(pagination.Next>pagination.len){%>disabled<%}%>">
                <a class="page-link" href="<%=pagination.url+(pagination.Next)%>/">下一页</a>
            </li>
        </ul>
    </nav>
</div>
<%}%>